package com.aaa.service;

import com.aaa.entity.OmsOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface OrderService extends IService<OmsOrder> {
    List<Map<String, Object>> selectOrder(Integer id);

    Integer removeOrProduct(String order_sn);

    Integer removeOrderId(Integer id,String order_sn);

    Integer updState(String out_trade_no);

    Integer addOrder(String id, String orderid2, String username, String address, String name, String phone, String countPrice);

    Map<String,Object> selectOrderByOrderId(String orderid2);

    Map<String, Object> selectCartByOrderId(String s);

    Integer addOrderItem(String oid, String order_sn, Object product_id, Object product_name1, Object price, Object quantity);

    Integer removeCartById(String s);

    List<Map<String, Object>> selectOrderById(String id);

    Integer removeByOrderSn(String order_sn);
}
